<h2><?php echo $this->language->name ?><?php if($this->language->original == 1):?> - Original Language<?php endif;?></h2>

<?php if($this->language->original == 0): ?>
<label class="inline">Total Progress:</label>
<div class="progress_bg">
	<div class="progress_fg" style="width: <?php echo $this->language->progress*100 ?>%;"><?php echo floor($this->language->progress*100) ?>%</div>
</div>
<?php endif; ?>

<?php foreach($this->bundles as $bundle): ?>
<hr />

<div class="grid clearfix">
<div class="box_6 first">
	<h4 style="margin-top: 0;"><a href="<?php echo $this->url(array('action' => 'view', 'controller' => 'bundle', 'code' => $this->language->code, 'bundle' => $bundle->id), 'default', true)?>"
	><?php echo $this->escape($bundle->name) ?></a></h4>
	<p style="margin: 0;"><small><?php echo $this->escape($bundle->description) ?></small></p>
</div>

<div class="box_6 last">
	<label class="inline">Progress:</label>
	<?php if($this->language->original == 0): ?>
	<div class="progress_bg">
		<div class="progress_fg" style="width: <?php echo ((float)$bundle->translated / $bundle->count)*100 ?>%;"><?php echo floor(((float)$bundle->translated / $bundle->count)*100) ?>%</div>
	</div>
	<?php else: ?>
	<p style="margin:0;"><small>Original, no translation necessary</small></p>
	<?php endif; ?>
</div>
</div>

<div style="text-align: center; margin: 1em 0;">
	<a href="<?php echo $this->url(array('action' => 'view', 'controller' => 'bundle', 'code' => $this->language->code, 'bundle' => $bundle->id), 'default', true)?>" class="fancybutton">View Keys</a>
</div>
<?php endforeach; ?>